import Vue from 'vue'
import App from './App'
import router from './router'//会自动找router目录下的index.js文件
import './router/permission'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import Moment from 'moment'
import store from './store'

import Vant from 'vant'
import 'vant/lib/index.css'
import axios from 'axios';
import VueParticles from 'vue-particles'
//引入阿里图标库
import './assets/iconfont/iconfont.css'

//引入vue-quill-editor富文本
import VueQuillEditor from 'vue-quill-editor'

import 'quill/dist/quill.core.css' // import styles
import 'quill/dist/quill.snow.css' // for snow theme
import 'quill/dist/quill.bubble.css' // for bubble theme

//引入echarts
import * as echarts from 'echarts'

//全局注册，之后可再其他组件中通过this.$axios发送数据
Vue.prototype.$axios=axios
//moment控制输出时间格式
Vue.config.productionTip = false
//事件转换格式
Vue.prototype.$moment = Moment
//echarts
Vue.prototype.$echarts = echarts
//安装element-ui
Vue.use(ElementUI)
//富文本
Vue.use(VueQuillEditor)
//vant组件库
Vue.use(Vant);
//登录页随机效果图
Vue.use(VueParticles)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  render:h=>h(App),
  router,
  store,
  components: { App },
  template: '<App/>'
})
